package com.pactera.miyuangroup.db.entity;

import java.io.Serializable;

import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.pactera.miyuangroup.db.enums.DeliveryType;

import java.io.Serializable;

/**
 * <p>
 * 车辆人员关系
 * </p>
 *
 * @author WangWu
 * @since 2018-04-13
 */
@TableName("r_vehicle_user")
public class VehicleUser extends Model<VehicleUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private String id;
    /**
     * 操作员ID
     */
    private String userId;
    /**
     * 车辆ID
     */
    private String vehicleId;
    /**
     * 配送关系（固定、临时）
     */
    private DeliveryType relationship;
    /**
     * 调整日期
     */
    private Date adjustTime;
    /**
     * 生效时间（临时必填）
     */
    private Date effectTime;
    /**
     * 失效时间（临时必填）
     */
    private Date invalidTime;

    /**
     * 分配人
     */
    private String creater;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getVehicleId() {
        return vehicleId;
    }

    public void setVehicleId(String vehicleId) {
        this.vehicleId = vehicleId;
    }

    public DeliveryType getRelationship() {
        return relationship;
    }

    public void setRelationship(DeliveryType relationship) {
        this.relationship = relationship;
    }

    public Date getAdjustTime() {
        return adjustTime;
    }

    public void setAdjustTime(Date adjustTime) {
        this.adjustTime = adjustTime;
    }

    public Date getEffectTime() {
        return effectTime;
    }

    public void setEffectTime(Date effectTime) {
        this.effectTime = effectTime;
    }

    public Date getInvalidTime() {
        return invalidTime;
    }

    public void setInvalidTime(Date invalidTime) {
        this.invalidTime = invalidTime;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "VehicleUser{" +
                "id=" + id +
                ", userId=" + userId +
                ", vehicleId=" + vehicleId +
                ", relationship=" + relationship +
                ", adjustTime=" + adjustTime +
                ", effectTime=" + effectTime +
                ", invalidTime=" + invalidTime +
                ", creater=" + creater +
                "}";
    }
}
